package com.smzd.core.domain;

public class BaseScopeEntity<S extends IntIdEntity> extends BaseIntIdEntity
		implements IScopedEntity<S> {
	private static final long serialVersionUID = 8244048815776689406L;
	protected S scope;

	@Override
	public void setScope(S scope) {
		this.scope = scope;
	}

	@Override
	public S getScope() {
		return scope;
	}

	@Override
	protected void extStrings(StringBuffer sb) {
		super.extStrings(sb);
		sb.append(", scope: ").append(scope == null ? null : scope.getId());
	}
}
